<?php/** * Created by PhpStorm. * User: Administrator * Date: 2017/11/22 0022 * Time: 10:15 */namespace  app\mobile\controller;use think\Controller;use think\Session;class Bases  extends Controller{    public function _initialize(){        if(!session('id')){            $this->redirect('/admin/index/index');        }    }}